<?php

$commonWebConfig = require(dirname(__DIR__) . '/common/web.php');

$config = [
    'components' => [
        'db' => require(__DIR__ . '/db.php'),
    ],
    'params' => require(__DIR__ . '/params.php'),
];
//开启dev环境的debug如果想关闭将这段代码的if条件取反即可！
/*if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
    ];
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module',
    ];
}*/

return \yii\helpers\ArrayHelper::merge($commonWebConfig, $config);